def mul(A,B):
    # 矩阵A乘以矩阵B
    N,M=len(A),len(A[0])
    _M,K=len(B),len(B[0])
    if M!=_M:
        return None
    C=[[0]*K for i in range(N)]
    for i in range(N):
        for j in range(K):
            for k in range(M):
                C[i][j]+=A[i][k]*B[k][j]
    return C
def read(A,n):
    for _ in range(n):
        A.append(list(map(int,input().split())))

def output(A):
    for x in A:
        print(' '.join(map(str,x)))

A=[]
B=[]
N,M,K=map(int,input().split())
read(A,N)
read(B,M)
C=mul(A,B)
output(C)
